home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Multimedia
/
Resource Library: Multimedia.iso
/
hypertxt
/
msdos
/
hydos10
/
mode
< prev
next >
Wrap
Text File
|
1991-04-25
|
6KB
|
145 lines
MODE
Set mode of operation for printers, comm ports, display, keyboard
See also <COUNTRY> <NLSFUNC> <CHCP> <KEYB>
MODE is used to display or set the mode of operation for a printer,
asynchronous adapter, or graphics monitor. It also can redirect
parallel printer output to the asynchronous adapter, prepare devices
for code page switching, and change the keyboard auto-repeat rate.
COMMAND TYPE: External VERSION: 2.0 and up
The various possible uses of mode will be explained in groups
depending on the devices affected. NOTE: The exact options available
for MODE vary with different DOS versions. Refer to your DOS
reference manual for more information
MODE - device status
USE: MODE [device][/status]
device is the device to display status for (CON, PRN, LPT1, COM1 etc.)
/status is required only for the status of redirected parallel printers
If no device is specified, MODE reports the status of all
installed devices
MODE - configure printer
USE: MODE LPT#[:][n][,[m[,R]]
LPT# represents the printer (LPT1,LPT2,LPT3)
n specifies either 80 or 132 characters per line
m specifies 6 or 8 lines per inch
R specifies a retry action to take when the printer is not ready.
(DOS 3.3 and earlier) only value is "P" - continue trying when
printer is busy.
(DOS 4.x) Possible values for R are:
"E" - return error if printer busy
"B" keep trying if busy (same as "P" in earlier versions)
"R" returns "ready" even if printer status says not-ready
Default values are LPT1, 80 columns, 6 lpi
MODE - Monitor display mode
USE: MODE display, n
or MODE [display],shift
or MODE con[:][cols=n][lines=m]
display is one of the following options describing the monitor attached.
40 screen width of 40 characters (CGA only)
80 screen width of 80 characters (CGA only)
BW40 disables color on a color monitor and sets screen width to 40
BW80 disables color on a color monitor and sets screen width to 80
CO40 enables color on a color monitor and sets screen width to 40
CO80 enables color on a color monitor and sets screen width to 80
MONO selects a monochrome monitor (fixed width of 80 characters)
shift - set to "L" or "R" shifts the display left or right to align
correctly (CGA only)
(DOS 4.x only)
n - number of lines on display (values are 25 (all displays), 43
(EGA/VGA) and 50 (VGA only)
m - number of columns (values are 40 or 80)
MODE - Set keyboard repeat rate (DOS 4.x only)
USE: MODE con[:] rate=r delay=d
r - autorepeat interval time (1-32)
d - autorepeat start delay time (1-4, corresponding to 0.25, 0.5, 0.75,
1.0 seconds)
MODE - configure asynchronous adapter (Serial Port)
USE: MODE COM#[:]b[,p[,d [,s[,r]]]]
or (DOS 4.x and later)
MODE COM# baud=b[ data=d][stop=s][parity=p][retry=r]
COM# is the asynchronous adapter to select. The acceptable values for #
are 1,2,3 or 4 (1,2 only for pre DOS 4.x)
b selects the speed that the asynchronous adapter will operate at. Only
the first two digits are given. Acceptable values are:
110, 150, 300, 600, 1200, 2400, 4800, and 9600.
p selects number or parity bits. Acceptable values for "p" are
N(none), O (odd), or E (even).
d is the number of data bits (7 or 8)
s is number of stop bits (1 or 2)
r specifies a retry action to take when the serial device is not ready.
(DOS 3.3 and earlier)
only value is "P" - continue trying when device is busy.
(DOS 4.x) Possible values for r are:
"E" - return error if device busy
"B" keep trying if busy (same as "P" in earlier versions)
"R" returns "ready" even if device status says not-ready
EXAMPLE: MODE COM1:96,N,8,1,P
selects asynchronous port #1 and sets it for 9600 baud, no parity, 8
databits, 1 stopbit, and sets it to be used with a printer with continuous
retry.
MODE - Redirect printing to a serial port
USE: MODE LPT#[:] [= COMn]
LPT# is the parallel port number to be redirected.
COMn is the asynchronous adapter that the output will be redirected to.
If not given, then any prior redirection of LPT1 is disabled.
EXAMPLE: MODE LPT1: = COM1
redirects output from LPT1 to COM1. Any future attempts to print to
LPT1 will be automatically routed to COM1. This example assumes that
COM1 has been initialised using a previous MODe command.
MODE - Set device code pages (DOS 3.3 and later)
USE: MODE device CODEPAGE PREPARE = ((cp) [d:][path]filename)
or MODE device CODEPAGE SELECT = cp
or MODE device CODEPAGE [/STATUS]
or MODE device CODEPAGE REFRESH
NOTE: The following abbreviations may be used
cp - CODEPAGE PREP - PREPARE SEL - SELECT
REF - REFRESH STA - STATUS
device specifies one of CON, PRN, LPT1, LPT2, or LPT3.
cp specifies one code page number. The code page must be of the
following values, 437, 850, 860, 863, 865.
d: path filename specifies the name of the file containing the code
pages. The code page information files provided on the DOS start up
diskette have the extension of .CPI
4201.CPI - IBM PROPRINTER 5202.CPI - IBM Quietwriter III
EGA.CPI - EGA DEVICES LCD.CPI - IBM CONVERTIBLE LCD
PREPARE - tells MSDOS to prepare the specified code page for the specified
device. You must prepare a code page before it can be used by
the device.
SELECT - selects the code page for use by a device. It must have been
PREPAREd first.
REFRESH - this reinstates prepared code pages which have been lost due to
hardware or other errors (such as turning off the printer).
/STATUS - displays current code pages prepared for a device
EXAMPLE: MODE LPT1 cp PREP=(850) 4201.cpI
This example specifies code page of 850 to be prepared for LPT1 and the
character shapes for IBM Proprinter Model 4201